﻿using Microsoft.AspNetCore.Mvc;
using MQ.Core.Common;
using MQ.Core.Admin.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MQ.Core.Admin
{
    /// <summary>
    /// web控制器基类
    /// </summary>
    [LoginFilter(requestType =RequestType.Web,responseType =ResponseType.View)]
    public abstract class WebController:Controller
    {
        [LoginFilter(requestType = RequestType.Web, responseType = ResponseType.Json)]
        protected virtual ActionResult Success(object data)
        {
            return Json(ResultMsg.Ok(data));
        }
    }
}
